package com.sense.kukoo.biz_explore.model

import com.sense.kukoo.biz_explore.net.ExploreHttpApi
import com.sense.kukoo.common.mvvm.model.BaseMvvmModel
import com.sense.kukoo.common.repo.bean.*
import com.sense.kukoo.common.repo.http.KukooHttpManager

class MusicCollectionModel: BaseMvvmModel()  {

    override fun onModelCleared() {}

    suspend fun getMoreData(pageIndex: Int, pageSize: Int, code: String): ResultBean<QueryPageBean<BookBean>> {
        return KukooHttpManager.instance
            .createHttpClient(ExploreHttpApi::class.java)
            .more(""+pageIndex, ""+pageSize, code)
    }
}